package com.inifitness.admin.core.system.service;


import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.inifitness.admin.core.system.model.entity.SysEventParam;
import com.inifitness.admin.core.system.model.form.EventParamForm;
import com.inifitness.admin.core.system.model.query.EventParamPageQuery;
import com.inifitness.admin.core.system.model.vo.EventParamPageVO;
import com.inifitness.common.model.Option;

/**
 * 系统管理-事件参数服务接口
 *
 * @author
 * @since 2024-05-31 13:46:16
 */

public interface SysEventParamService extends IService<SysEventParam> {

  /**
   * 获取分页数据
   *
   * @param queryParams 分页查询参数
   * @return
   */
  Page<EventParamPageVO> getEventParamPage(EventParamPageQuery queryParams);


  /**
   * 获取表单详情
   *
   * @param id ID
   * @return
   */
  EventParamForm getEventParamForm(Long id);


  /**
   * 新增对象
   *
   * @param form 对象表单
   * @return
   */
  boolean saveEventParam(EventParamForm form);


  /**
   * 修改对象
   *
   * @param id
   * @param form 对象表单
   * @return
   */
  boolean updateEventParam(Long id, EventParamForm form);

  /**
   * 删除对象
   *
   * @param ids 对象ID，多个以英文逗号(,)分割
   * @return
   */
  boolean deleteEventParams(String ids);

  /**
   * 获取下拉列表
   *
   * @return
   */
  List<Option<Long>> listEventParamOptions(String eventCode);
}
